<script>
  var w = window.open("about:blank", "", "width=200,height=200,dialog");
  w.close();
  window.close();
</script>
